function t(i) {
    a.showLoading("正在删除..."), wx.request({
        url: o.globalData.host + "/lotto/v1/export",
        data: {
            access_token: wx.getStorageSync("accessToken"),
            lid: i.data.lid
        },
        method: "POST",
        success: function(o) {
            a.hideLoading(), -500 != o.data.sta ? 0 == o.data.sta ? i.setData({
                url: o.data.data.url
            }) : a.showFailedToast("url获取失败", o.data.msg) : a.login(function() {
                t(i);
            });
        },
        fail: function(t) {
            a.hideLoading(), a.showFailedToast("url获取\b失败");
        }
    });
}

var a = require("../../utils/util.js"), o = getApp();

Page({
    data: {
        url: ""
    },
    onLoad: function(a) {
        this.setData({
            lid: a.lid
        }), t(this);
    },
    onShow: function() {},
    inputEmail: function(t) {
        var a = t.detail.value;
        this.setData({
            email: a
        });
    },
    postFormId: function(t) {
        a.postFormId(t.detail.formId);
    },
    copy: function() {
        var t = this.data.url;
        wx.setClipboardData({
            data: t,
            success: function(t) {
                a.showToast("复制成功");
            }
        });
    }
});